namespace Crux.Core.NHibernate;
/// <summary>
/// 
/// </summary>
public class NHibernateConstants
{
    /// <summary>
    /// 软删除
    /// </summary>
    public const string SoftDeleteConstants = "SoftDelete";
    /// <summary>
    /// 默认映射
    /// </summary>
    public static readonly Dictionary<Type, IType> TypeMapping = new()
    {
        [typeof(string)] = NHibernateUtil.String,
        [typeof(bool)] = NHibernateUtil.Boolean,
        [typeof(long)] = NHibernateUtil.Int64,
        [typeof(int)] = NHibernateUtil.Int32,
        [typeof(DateTime)] = NHibernateUtil.DateTime,
        [typeof(Guid)] = NHibernateUtil.Guid,
        [typeof(decimal)] = NHibernateUtil.Decimal,
        [typeof(double)] = NHibernateUtil.Double,
        [typeof(short)] = NHibernateUtil.Int16,
        [typeof(byte)] = NHibernateUtil.Byte,
        [typeof(DateTimeOffset)] = NHibernateUtil.DateTimeOffset,
        [typeof(byte[])] = NHibernateUtil.Binary

    };
}